<template>
  <div>
    <Oprate></Oprate>
    <div class="main-container">
      <div class="list-wrap">
        <div class="item-doctor" v-for="doctor in doctor">
          <span class="check-it"></span>
          <img class="photo" src="../../../../assets/img/photo.png">
          <div class="desc-wrap">
            <p class="name">
              {{doctor.name}}
              <span class="color-tag" :class=doctor.class>{{doctor.department}}</span>
            </p>
            <p class="desc">
              <span class="list-area">{{doctor.hospital}}</span>
            </p>
          </div>
          <p class="tags-wrap">
            <span>疾病认知水平</span>
            <span>疾病认知水平</span>
            <span>疾病认知水平</span>
            <span>疾病认知水平</span>
          </p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import Oprate from '../../../Oprate/Oprate1'
  export default {
    components: {
      Oprate
    },
    data(){
      return {
        doctor: [
          {name: '吴一龙',department:'肿瘤科',class:'green',hospital:'上海东方医院'},
          {name: '邢晓萍',department:'医务科',class:'yellow',hospital:'上海市浦东新区南汇精神卫生中心'},
          {name: '黄微宜',department:'精神心理科',class:'dark_green',hospital:'上海市浦东新区南汇精神卫生中心'},
          {name: '闵婕',department:'精神科',class:'red',hospital:'上海市浦东新区精神卫生中心'},
          {name: '李远者',department:'临床心理科',class:'green',hospital:'上海东方医院'},
          {name: '赵旭东',department:'临床心理科',class:'yellow',hospital:'上海东方医院'},
          {name: '韩宏毅',department:'肿瘤科',class:'dark_green',hospital:'上海东方医院'},
          {name: '吴绍敏',department:'肿瘤科',class:'red',hospital:'上海东方医院'},
        ]
      }
    }
  }
</script>

<style scoped>
  .main-container {
    margin: 20px 30px;
    padding: 10px 30px 40px;
    background-color: rgba(0,0,0,.2);
    border: none;
    border-radius: 5px;
    position: relative;
    margin-bottom: 24px;
    box-shadow: 0 5px 5px 0 rgba(0,0,0,.25);
    background-image: url("../../../../assets/blur-bg-blurred.jpg");
  }

  /**/
  .item-doctor{
    padding: 10px 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  .check-it{
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 2px solid #fff;
    cursor: pointer;
  }
  .photo{
    margin: 0 26px 0 28px;
  }
  .desc-wrap{
    width: 218px;
    flex-shrink: 0;
    color: #fff;
  }
  .name{
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .color-tag{
    display: inline-block;
    min-width: 42px;
    height: 20px;
    line-height: 20px;
    padding-right: 3px;
    padding-left: 3px;
    border-radius: 4px;
    font-size: 14px;
  }
  .green{
    background-color: #7b9e02;
  }
  .yellow{
    background-color: #deb81b;
  }
  .dark_green{
    background-color: #1f9e91;
  }
  .red{
    background-color: #e85656;
  }
  .desc{
    font-size: 12px;
  }
  .tags-wrap{
    flex-shrink: 1;
    -webkit-box-flex: 0;
    flex-grow: 0;
    overflow: hidden;
  }
  .tags-wrap>span{
    font-size: 12px;
    margin-right: 24px;
    display: inline-block;
    color: #fff;
  }
</style>
